#ifndef MAGICDOCCHILDFRAME_H_HEADER_INCLUDED
#define MAGICDOCCHILDFRAME_H_HEADER_INCLUDED

#include <wx/wx.h>
#include "../definition.h"
#include "../DocStore/Document.h"
#include <wx/treectrl.h>

class MagicDocChildFrame: public wxPanel
{
protected:
    Document* m_doc;
public:
    MagicDocChildFrame(Document* doc, wxWindow *parent, wxWindowID id=wxID_ANY, 
        const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, 
        long style=wxTAB_TRAVERSAL, const wxString &name=wxPanelNameStr)
        : wxPanel(parent, id, pos, size, style, name)
    {
        m_doc = doc;
    }

    Document* GetDocument(){ return m_doc; };

    DECLARE_EVENT_TABLE();
};

#endif
